[INFO] cloning repository https://github.com/carlos-mercado/rust-notes
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/carlos-mercado/rust-notes" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcarlos-mercado%2Frust-notes", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcarlos-mercado%2Frust-notes'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 426475e782436e5aa79cc9ade838f5cc2b056e73
[INFO] fixing carlos-mercado/rust-notes against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcarlos-mercado%2Frust-notes" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/carlos-mercado/rust-notes
[INFO] finished tweaking git repo https://github.com/carlos-mercado/rust-notes
[INFO] tweaked toml for git repo https://github.com/carlos-mercado/rust-notes written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/carlos-mercado/rust-notes on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/carlos-mercado/rust-notes already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] aeede596d4c668395e13fca4da9e38bacdbc598cc19f7c1e12e7d5b4628db678
[INFO] running `Command { std: "docker" "start" "aeede596d4c668395e13fca4da9e38bacdbc598cc19f7c1e12e7d5b4628db678", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "aeede596d4c668395e13fca4da9e38bacdbc598cc19f7c1e12e7d5b4628db678" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "aeede596d4c668395e13fca4da9e38bacdbc598cc19f7c1e12e7d5b4628db678", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "aeede596d4c668395e13fca4da9e38bacdbc598cc19f7c1e12e7d5b4628db678" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]     Checking rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0106]: missing lifetime specifier
[INFO] [stdout]   --> src/bin/ch10.rs:21:46
[INFO] [stdout]    |
[INFO] [stdout] 21 | fn longest_string(a: &String, b: &String) -> &String
[INFO] [stdout]    |                      -------     -------     ^ expected named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout]    = help: this function's return type contains a borrowed value, but the signature does not say whether it is borrowed from `a` or `b`
[INFO] [stdout] help: consider introducing a named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout] 21 | fn longest_string<'a>(a: &'a String, b: &'a String) -> &'a String
[INFO] [stdout]    |                  ++++     ++             ++             ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s`
[INFO] [stdout]  --> src/bin/ch10.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 |     let s: &'static str = "I have a static lifetime.";
[INFO] [stdout]   |         ^ help: if this is intentional, prefix it with an underscore: `_s`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0106`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust` (bin "ch10") due to 1 previous error; 1 warning emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: function `f_to_c` is never used
[INFO] [stdout]   --> src/bin/ch3.rs:12:4
[INFO] [stdout]    |
[INFO] [stdout] 12 | fn f_to_c(temp: f32)-> f32 { (temp - 32.0) * 5.0 / 9.0 }
[INFO] [stdout]    |    ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `c_to_f` is never used
[INFO] [stdout]   --> src/bin/ch3.rs:13:4
[INFO] [stdout]    |
[INFO] [stdout] 13 | fn c_to_f(temp: f32)-> f32 { temp * 9.0 / 5.0 + 32.0 }
[INFO] [stdout]    |    ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `process_nested_option` is never used
[INFO] [stdout]   --> src/bin/ch6.rs:17:4
[INFO] [stdout]    |
[INFO] [stdout] 17 | fn process_nested_option(outer: Option<Option<i32>>)
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `find_first` is never used
[INFO] [stdout]   --> src/bin/ch4.rs:11:4
[INFO] [stdout]    |
[INFO] [stdout] 11 | fn find_first(s: &str) -> &str 
[INFO] [stdout]    |    ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `f32::RADIX`, `fs::ReadDir`, and `str::RMatchIndices`
[INFO] [stdout]   --> src/bin/ch5.rs:13:11
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::{f32::RADIX, fs::ReadDir, str::RMatchIndices};
[INFO] [stdout]    |           ^^^^^^^^^^  ^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `f32::RADIX`, `fs::ReadDir`, and `str::RMatchIndices`
[INFO] [stdout]   --> src/bin/ch5.rs:13:11
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::{f32::RADIX, fs::ReadDir, str::RMatchIndices};
[INFO] [stdout]    |           ^^^^^^^^^^  ^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Rectangle` is never constructed
[INFO] [stdout]   --> src/bin/ch5.rs:17:8
[INFO] [stdout]    |
[INFO] [stdout] 17 | struct Rectangle 
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `area` is never used
[INFO] [stdout]   --> src/bin/ch5.rs:25:8
[INFO] [stdout]    |
[INFO] [stdout] 23 | impl Rectangle
[INFO] [stdout]    | -------------- method in this implementation
[INFO] [stdout] 24 | {
[INFO] [stdout] 25 |     fn area(&self) -> u32
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Grade` is never constructed
[INFO] [stdout]  --> src/bin/ch8.rs:1:8
[INFO] [stdout]   |
[INFO] [stdout] 1 | struct Grade
[INFO] [stdout]   |        ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `value` are never used
[INFO] [stdout]   --> src/bin/ch8.rs:8:8
[INFO] [stdout]    |
[INFO] [stdout]  6 | impl Grade
[INFO] [stdout]    | ---------- associated items in this implementation
[INFO] [stdout]  7 | {
[INFO] [stdout]  8 |     fn new(value: i32) -> Result<Grade, String>
[INFO] [stdout]    |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 18 |     fn value(&self) -> i32 { self.value }
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `find_first` is never used
[INFO] [stdout]   --> src/bin/ch4.rs:11:4
[INFO] [stdout]    |
[INFO] [stdout] 11 | fn find_first(s: &str) -> &str 
[INFO] [stdout]    |    ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Rectangle` is never constructed
[INFO] [stdout]   --> src/bin/ch5.rs:17:8
[INFO] [stdout]    |
[INFO] [stdout] 17 | struct Rectangle 
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `area` is never used
[INFO] [stdout]   --> src/bin/ch5.rs:25:8
[INFO] [stdout]    |
[INFO] [stdout] 23 | impl Rectangle
[INFO] [stdout]    | -------------- method in this implementation
[INFO] [stdout] 24 | {
[INFO] [stdout] 25 |     fn area(&self) -> u32
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0106]: missing lifetime specifier
[INFO] [stdout]   --> src/bin/ch10.rs:21:46
[INFO] [stdout]    |
[INFO] [stdout] 21 | fn longest_string(a: &String, b: &String) -> &String
[INFO] [stdout]    |                      -------     -------     ^ expected named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout]    = help: this function's return type contains a borrowed value, but the signature does not say whether it is borrowed from `a` or `b`
[INFO] [stdout] help: consider introducing a named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout] 21 | fn longest_string<'a>(a: &'a String, b: &'a String) -> &'a String
[INFO] [stdout]    |                  ++++     ++             ++             ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Map` that must be used
[INFO] [stdout]  --> src/bin/ch13.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 |     v1.iter().map(|x| x + 1);
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: iterators are lazy and do nothing unless consumed
[INFO] [stdout]   = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]   |
[INFO] [stdout] 4 |     let _ = v1.iter().map(|x| x + 1);
[INFO] [stdout]   |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s`
[INFO] [stdout]  --> src/bin/ch10.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 |     let s: &'static str = "I have a static lifetime.";
[INFO] [stdout]   |         ^ help: if this is intentional, prefix it with an underscore: `_s`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0106`.
[INFO] [stdout] 
[INFO] [stdout] warning: function `process_nested_option` is never used
[INFO] [stdout]   --> src/bin/ch6.rs:17:4
[INFO] [stdout]    |
[INFO] [stdout] 17 | fn process_nested_option(outer: Option<Option<i32>>)
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust` (bin "ch10" test) due to 1 previous error; 1 warning emitted
[INFO] [stdout] warning: function `find_mean` is never used
[INFO] [stdout]   --> src/bin/ch7.rs:29:4
[INFO] [stdout]    |
[INFO] [stdout] 29 | fn find_mean(user_vec: &Vec<i32>) -> Option<f32>
[INFO] [stdout]    |    ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `find_median` is never used
[INFO] [stdout]   --> src/bin/ch7.rs:39:4
[INFO] [stdout]    |
[INFO] [stdout] 39 | fn find_median(user_vec: &Vec<i32>) -> Option<i32>
[INFO] [stdout]    |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `find_mode` is never used
[INFO] [stdout]   --> src/bin/ch7.rs:51:4
[INFO] [stdout]    |
[INFO] [stdout] 51 | fn find_mode(user_vec: &Vec<i32>) -> Option<i32>
[INFO] [stdout]    |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `string_to_pig_latin` is never used
[INFO] [stdout]   --> src/bin/ch7.rs:78:4
[INFO] [stdout]    |
[INFO] [stdout] 78 | fn string_to_pig_latin(user_string: String) -> Option<String>
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "aeede596d4c668395e13fca4da9e38bacdbc598cc19f7c1e12e7d5b4628db678", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "aeede596d4c668395e13fca4da9e38bacdbc598cc19f7c1e12e7d5b4628db678", kill_on_drop: false }`
[INFO] [stdout] aeede596d4c668395e13fca4da9e38bacdbc598cc19f7c1e12e7d5b4628db678
